/*
 * 版权所有 2021-2022 原作者根据泰锦优许可证获得许可；
 * 除非遵守许可，否则您不得使用此文件。
 */
package com.example.mc_deal.plugin.common;

import org.tio.core.intf.Packet;

/**
 * @author CLS
 * @since 1.0.0
 */
public class SPPacket extends Packet {
    private static final long serialVersionUID = -5481926483435771100L;
    //消息头的长度 4
    static final int HEADER_LENGTH = 4;
    public static final String CHARSET = "utf-8";

    private byte[] body;

    public SPPacket() {
        super();
    }

    /**
     * @author tanyaowu
     */
    public SPPacket(byte[] body) {
        super();
        this.body = body;
    }

    /**
     * @return the body
     */
    public byte[] getBody() {
        return body;
    }

    /**
     * @param body the body to set
     */
    public void setBody(byte[] body) {
        this.body = body;
    }

}
